package com.baweiwei.ordersapi.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

@FeignClient(value = "user-service")
public interface UserFeign {
    
    @RequestMapping("/user/money")
    public Map<String,Object> money(@RequestParam Integer userId,@RequestParam BigDecimal money);
}
